package love.contact.data;

import java.util.ArrayList;
import java.util.List;

public class AttributeValueStruct 
{
	private List<String> valueArray;
	private int type;
	private String label;//name of type
	
	public AttributeValueStruct(int valueCount)
	{
		valueArray=new ArrayList<String>(valueCount);
	}
	
	public String getValue(int index) 
	{
		return valueArray.get(index);
	}
	public void setValue(String value,int index) 
	{
		if(valueArray.size()>index)
		{
			valueArray.set(index, value);
		}
		else
		{
			valueArray.add(index, value);
		}
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	
	
}
